﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;
namespace BUS
{
    public class DIEMBUS
    {
        DIEMDAO diemdao = new DIEMDAO();
        //Load danh sach điểm
        public DataTable LoadDiem(int malop, int mahk, int mamon)
        {
            return diemdao.LoadDiem(malop, mahk, mamon);
        }
        //thêm điểm
        public int ThemDiem(DIEMDTO diem)
        {
            return diemdao.ThemDiem(diem);
        }
        //xóa điểm
        public int XoaDiem(int madiem)
        {
            return diemdao.XoaDiem(madiem);
        }
         //Tim Kiếm hoc sinh theo ten
        public DataTable LoadDiemTheoTen(int mahk, int mamon, string tenhocsinh)
        {
            return diemdao.LoadDiemTheoTen(mahk, mamon, tenhocsinh);
        }
        //Xem Diem hoc sinh
        public DataTable LoadDiemHocSinh(int mahk, int mahs, int nam)
        {
            return diemdao.LoadDiemHocSinh(mahk, mahs, nam);
        }
        //Tinh Diem hoc sinh
        public DataTable DanhSachXepLoaiHocSinh(int mahk, int malop)
        {
            return diemdao.DanhSachXepLoaiHocSinh(mahk, malop);
        }
         //Load danh sach điểm theo nam
        public DataTable LoadDiemTheoLopTheoNam(int malop, int mahk, int mamon, int nam)
        {
            return diemdao.LoadDiemTheoLopTheoNam(malop, mahk, mamon, nam);
        }
        //Load danh sach điểm theo Khoi
        public DataTable LoadDiemTheoLopTheoKhoi(int makhoi, int mahk, int mamon, int nam)
        {
            return diemdao.LoadDiemTheoLopTheoKhoi(makhoi, mahk, mamon, nam);
        }
        //Thong Ke cac mon theo lop
        public DataTable ThongKeTatCaMonTheoLop(int mahk, int malop, int manam)
        {
            return diemdao.ThongKeTatCaMonTheoLop(mahk, malop, manam);
        }
        //Thong Ke cac mon theo khoi
        public DataTable ThongKeTatCaMonTheoKhoi(int mahk, int makhoi, int manam)
        {
            return diemdao.ThongKeTatCaMonTheoKhoi(mahk, makhoi, manam);
        }
    }
}
